package haxe.util.benchmark;

class BenchmarkResult 
{
	var millis:Int;
	var text:String;
	public var duration(getDuration,null):Int;
	public var description(getDescription,null):String;
	
	public function new( descripion:String, milliseconds:Int )
	{
		this.millis = milliseconds;
		this.text = descripion;
	}
	
	private function getDuration():Int
	{
		return millis;
	}
	
	private function getDescription():String
	{
		return text;
	}
}